import Vue from 'vue'
import Router from 'vue-router'
const login = () => import('@/views/login')
// const Index = () => import('@/views/index')
const Index = () => import('@/views/index')
const inviteRegister = () => import('@/views/register')
const register = () => import('@/views/register')
const ActiveAccount = () => import('@/views/activeAccount')
const ToCheckEmail = () => import('@/views/toCheckEmail')
const RfiAdd = () => import('@/components/vendormgt/rfi/buyer/add/rfiAdd.vue')
const RfiItem = () => import('@/components/vendormgt/rfi/buyer/rfiItem.vue')
const Questionnaire = () => import('./../components/vendormgt/questionary/questionnaire2.vue')
const Questionnaire3 = () => import('./../components/vendormgt/questionary/questionnaire3.vue')
const CommonFrame = () => import('@/components/vendormgt/vsp/common/commonFrame.vue')
const waitWork = () => import('./../components/vendormgt/vsp/common/waitWork.vue')
const Online1 = () => import('./../components/vendormgt/vsp/common/online1.vue')
const Online2 = () => import('./../components/vendormgt/vsp/common/online2.vue')
const View = () => import('./../components/vendormgt/questionary/view.vue')
const Home = () => import('./../components/home.vue')
const Timeline = () => import('./../components/timeline.vue')
const VendorRegister = () => import('./../components/vendormgt/vsp/registvendor/vendorRegister.vue')
const Potential = () => import('./../components/vendormgt/vsp/potentialvendor/potential.vue')
const Formal = () => import('./../components/vendormgt/vsp/formalvendor/formal.vue')
const Eliminate = () => import('./../components/vendormgt/vsp/eliminatevendor/eliminate.vue')
const All = () => import('./../components/vendormgt/vsp/allvendor/all.vue')

const tableExpandTest = () => import('./../components/common/table-ext/table-expand.vue')
const Rfi = () => import('./../components/vendormgt/rfi/buyer/rfi.vue')
const RfiList = () => import('./../components/vendormgt/rfi/vendor/rfiList.vue')
const RfiItemView = () => import('./../components/vendormgt/rfi/buyer/common/rfiItemView.vue')
const RfiItemCheck = () => import('./../components/vendormgt/rfi/buyer/common/rfiItemCheck.vue')
const Invitation = () => import('./../components/vendormgt/invite/invitation.vue')
const RfiFeedBack = () => import('./../components/vendormgt/rfi/vendor/feedBack.vue')
// 主数据
const MaterialCategory = () => import('./../components/masterdata/materialcategorymgt/materialCategory.vue')
const Materiel = () => import('./../components/masterdata/materialmgt/materiel.vue')
const Company = () => import('./../components/masterdata/companymgt/company.vue')
const Factory = () => import('./../components/masterdata/factorymgt/factory.vue')
const FactoryMaterial = () => import('@/components/masterdata/factorymgt/factoryMaterial.vue')
const SRMPurOrg = () => import('./../components/masterdata/purorgmgt/srmPurOrg.vue')
const ERPPurOrg = () => import('./../components/masterdata/purorgmgt/erpPurOrg.vue')
const SRMPurGroup = () => import('./../components/masterdata/purgroupmgt/srmPurGroup.vue')
const ERPPurGroup = () => import('./../components/masterdata/purgroupmgt/erpPurGroup.vue')
const Expert = () => import('./../components/masterdata/expertmgt/expert.vue')
const Lgort = () => import('./../components/masterdata/lgortmgt/lgort.vue')
const ExaminationScore = () => import('./../components/vendordlv/dlvmgt/factoryInspect/examinationScore.vue')
// 开发准入 ExaminationScore
const DlvApply = () => import('./../components/vendordlv/dlvmgt/dlvapply/dlvApply.vue')
const SaveOrUpdateDlvApply = () => import('./../components/vendordlv/dlvmgt/dlvapply/saveOrUpdateDlvApply.vue')
const TurnToQualifiedVendor = () => import('./../components/vendordlv/dlvmgt/dlvapply/turnToQualifiedVendor.vue')
const DlvApplyView = () => import('./../components/vendordlv/dlvmgt/dlvapply/dlvApplyView.vue')
const VendorInspect = () => import('./../components/vendordlv/dlvmgt/factoryInspect/buyer/vendorInspect.vue')
const VendorInspectAdd = () => import('./../components/vendordlv/dlvmgt/factoryInspect/buyer/vendorInspectAdd/vendorInspectAdd.vue')
const VendorInspectScoreList = () => import('./../components/vendordlv/dlvmgt/score/vendorInspectScoreList.vue')
const VendorInspectScoreView = () => import('./../components/vendordlv/dlvmgt/score/vendorInspectScoreView.vue')
// 开发申请打样待办
const ToDoNode = () => import('./../components/vendordlv/dlvmgt/dlvapply/toDoNodeList.vue')
// 新物料打样
const NpcTask = () => import('./../components/vendordlv/npc/buyer/npcTaskTab.vue')
// 采购端打样待办
const BuyerToDoList = () => import('./../components/vendordlv/npc/buyer/buyerToDoList.vue')
// 供应端打样待办
const VendorToDoList = () => import('./../components/vendordlv/npc/vendor/vendorToDoList.vue')
const VendorNpcTask = () => import('./../components/vendordlv/npc/vendor/npcTaskTab.vue')
// 新物料打样dialog
const NpcTaskDialog = () => import('./../components/vendordlv/npc/buyer/npcTaskDialog.vue')
// Add页面
const AddNpcTaskTab = () => import('./../components/vendordlv/npc/buyer/withmtrl/add/tab.vue')
// View页面
const ViewNpcTaskTab = () => import('./../components/vendordlv/npc/buyer/withmtrl/view/tab.vue')
const VendorViewNpcTaskTab = () => import('./../components/vendordlv/npc/vendor/withmtrl/view/tab.vue')
const RfiDeail = () => import('./../components/vendormgt/rfi/buyer/view/rfiDetail.vue')
const VendorPrompt = () => import('./../components/vendordlv/dlvmgt/vendorPrompt.vue')
const VendorPromptView = () => import('./../components/vendordlv/dlvmgt/vendorPromptView.vue')
const Notice = () => import('./../components/system/noticemgt/notice.vue')
const AddNotice = () => import('./../components/system/noticemgt/addNotice.vue')
const Dictionaries = () => import('./../components/system/datadict/dictionaries.vue')
const User = () => import('./../components/system/usermgt/user.vue')
const UserAllowDataAuth = () => import('./../components/system/usermgt/allowDataAuth.vue')
const Part = () => import('./../components/system/rolemgt/part.vue')
const Online = () => import('./../components/system/online/online.vue')
const TableTest = () => import('./../components/common/table-ext/table-test')
const Supplier = () => import('./../components/main.vue')
const VendorDlv = () => import('./../components/main.vue')
const MasterData = () => import('./../components/main.vue')
const System = () => import('./../components/main.vue')
//商务协同
const Buscollaboration = () => import('./../components/main.vue')
const Rfq = () => import('./../components/main.vue')
const PurRequestMgt = () => import('./../components/main.vue')
//工厂考察评估
const FactoryInspectItem = () => import('./../components/vendordlv/dlvmgt/factoryInspect/factoryInspectItem.vue')

//供应商考察评估
const VendorInspectionEvaluation = () => import('./../components/vendordlv/dlvmgt/factoryInspect/vendor/vendorInspectionEvaluation.vue')
//查看评分
const LookScore = () => import('./../components/vendordlv/dlvmgt/factoryInspect/lookScore.vue')
//评分审核界面
const Validate = () => import('./../components/vendordlv/dlvmgt/factoryInspect/validate.vue')
//查看评分附件
const Enclosure = () => import('./../components/vendordlv/dlvmgt/factoryInspect/enclosure.vue')
//编辑
const Editor = () => import('./../components/vendordlv/dlvmgt/factoryInspect/editor.vue')
// 采购申请主单
const PurRequest = ()=> import('./../components/rfq/purrequest/purRequestList.vue')
// 采购申请明细
const PurRequestItem = ()=> import('./../components/rfq/purrequest/purRequestItemList.vue')
// 采购申请转招标
const ToBidTab = () => import('@/components/rfq/purrequest/matchtab/bid/toBidTab.vue')
const ToEnquiryDetail = () => import('@/components/rfq/purrequest/matchtab/enquiry/toEnquiryDetail.vue')
// 采购申请匹配框架视图页面
const PurReqMatchTab = () => import('@/components/rfq/purrequest/matchtab/purReqMatchTab.vue')
//询比价
const RfqEnquiry = ()=> import('../components/rfq/enquiry/rfqEnquiry.vue')
const AddRfqEnquiry = ()=> import('./../components/rfq/enquiry/addRfqEnquiry.vue')
const EnquiryTemplate = ()=> import('../components/rfq/enquiry/enquiryTemplate.vue')
//询比价查看页面
const EnquirySteps = ()=> import('./../components/rfq/enquiry/enquirysteps/index.vue')
//采购商询比价 报价
// const Quote = ()=> import('@/components/rfq/quote/buyer/quote.vue')
//供应商询比价 报价
const VendorQuoteList = ()=> import('@/components/rfq/quote/vendor/vendorQuoteList.vue')
const VendorQuoteMain = ()=> import('@/components/rfq/quote/vendor/vendorQuote/vendorQuoteMain.vue')
const DetailQuote = ()=> import('@/components/rfq/quote/vendor/vendorQuote/vendorQuoteMainDetail/detailQuote/detailQuote.vue')
const SubentryQuote = ()=> import('@/components/rfq/quote/vendor/vendorQuote/vendorQuoteMainDetail/subentryQuote/subentryQuote.vue')
const UnitPriceQuote = ()=> import('@/components/rfq/quote/vendor/vendorQuote/vendorQuoteMainDetail/unitPriceQuote/unitPriceQuote.vue')
//查看单价页面
const CheckUnitPriceQuote = ()=> import('@/components/rfq/quote/vendor/vendorQuote/vendorQuoteMainDetail/unitPriceQuote/checkUnitPriceQuote.vue')
const CheckSubentryQuote = ()=> import('@/components/rfq/quote/vendor/vendorQuote/vendorQuoteMainDetail/subentryQuote/checkSubentryQuote.vue')
//招投标（tender: 招标书 a tender document;bid: 投标书 a bid document）
const Bid = () => import('./../components/bid/bid/bidList.vue')
const creatBid = () => import('./../components/bid/bid/creatBid.vue')
const BidSteps = () => import('./../components/bid/bidsteps/index.vue')
const evaMethodTemp = () => import('./../components/bid/bid/evaMethodTemp.vue')
const Tender = () => import('./../components/bid/tender/tenderList.vue')
const TenderSteps = () => import('./../components/bid/tender/index.vue')
const techInstruction = () => import('./../components/bid/bidsteps/techInstruction.vue')

const BidEvaluation = () => import('./../components/bid/evaluation/evaluationList.vue')
const EvaluationStep = () => import('./../components/bid/evaluation/index.vue')
const EvaluationForm = () => import('./../components/bid/evaluation/evaluationForm.vue')

// 价格档案模块
const Budget = () => import('./../components/pricemgt/budgetList.vue')

// 门户界面portals
const Portals = () => import('@/views/portals')
const HomePage = () => import('@/views/portals/homePage')
const Catalog = () => import('@/views/portals/catalog')
//门户更多界面
const More = () => import('@/views/portals/more')
//门户详情界面
const Details = () => import('@/views/portals/details')
const Knowledge = () => import('@/views/portals/knowledge')
const News = () => import('@/views/portals/news')
const Public = () => import('@/views/portals/public')
//采购寻源
const Sourcing = () => import('./../components/main.vue')
const Contract = () => import('@/components/contract/contract')
const ContractApply = () => import('@/components/contract/contractApply')
const ContractTemplate = () => import('@/components/contract/contractTemplate')
const VendorContract = () => import('@/components/contract/vendor/contractList')
// 报价明细
const tabTableForm = () => import('@/components/tabTableForm/main.vue')
// 门户界面

Vue.use(Router)


export default new Router({
  mode: 'history',
  routes: [
    {
      path:'/test',
      name: 'test',
      component: TableTest
    },
    {
      path:'/More',
      name: 'more',
      component: More
    },
    {
      path:'/Details',
      name: 'details',
      component: Details
    },
    {
      path:'/tableExpandTest',
      name: 'tableExpandTest',
      component: tableExpandTest
    },

    {
      path:'/formTest',
      name: 'formTest',
      component: (resolve) => require(['./../components/common/table-ext/form-test'], resolve)
    },
    {
      path:'/tableExpand',
      name: 'tableExpand',
      component: (resolve) => require(['./../components/common/table-ext/table-expand'], resolve)
    },
    {
      path:'/test2',
      name: 'test2',
      component: (resolve) => require(['./../components/common/table-ext/test'], resolve)
    },
    {
      path:'/contract',
      component: (resolve) => require(['./../components/common/contract/contract'], resolve)
    },
    {
      path:'/contract2',
      name: 'contract2',
      component: (resolve) => require(['./../components/common/contract/contract3'], resolve)
    },
    {
      path:'/contractShow',
      name: 'contractShow',
      component: (resolve) => require(['./../components/common/contract/contractShow'], resolve)
    },
    {
      path:'/Questionnaire',
      name: 'Questionnaire',
      component: (resolve) => require(['./../components/vendormgt/questionary/questionnaire.vue'], resolve)
    },
    // 工厂考察评估Verification
    {
      path:'/FactoryInspectItem',
      name: 'factoryInspectItem',
      component: FactoryInspectItem
    },
    // 查看评分LookScore
    {
      path:'/LookScore',
      name: 'lookScore',
      component: LookScore
    },
    //询比价单价查看页面
    {
      path:'/CheckUnitPriceQuote',
      name: 'checkUnitPriceQuote',
      component: CheckUnitPriceQuote
    },
    //询比价多项查看页面CheckSubentryQuote
    {
      path:'/CheckSubentryQuote',
      name: 'checkSubentryQuote',
      component: CheckSubentryQuote
    },
    {
      path:'/Timeline',
      name: 'timeline',
      component: Timeline
    },
    {
      path: '/',
      name: 'Portals',
      redirect: '/HomePage',
      component: Portals,
      children:[
        {
          path: '/Catalog',
          name: 'catalog',
          component: Catalog,
        },
        {
          path: '/HomePage',
          name: 'homePage',
          component: HomePage,
        },
        {
          path: '/Knowledge',
          name: 'knowledge',
          component: Knowledge,
        },
        {
          path: '/News',
          name: 'news',
          component: News,
        },
        {
          path: '/Public',
          name: 'public',
          component: Public,
        },
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/ActiveAccount/:id',
      name: 'ActiveAccount',
      component: ActiveAccount
    },
    {
      path: '/inviteRegister/:id',
      name: 'inviteRegister',
      component: inviteRegister
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/ToCheckEmail',
      name: 'ToCheckEmail',
      component: ToCheckEmail
    },
     // 开发申请视图
     {
      path: '/DlvApplyView',
      name: 'DlvApplyView',
      component: DlvApplyView,
    },
    // 采购申请匹配框架视图
    {
      path: '/PurReqMatchTab',
      name: 'PurReqMatchTab',
      component: PurReqMatchTab
    },
    // 采购申请转招标
    {
      path: '/ToBidTab',
      name: 'ToBidTab',
      component: ToBidTab
    },
    // 专家打分视图
    {
      path: '/VendorInspectScoreView',
      name: 'VendorInspectScoreView',
      component: VendorInspectScoreView,
    },
    // 供应商转正视图
    {
      path: '/VendorPrompt',
      name: 'VendorPrompt',
      component: VendorPrompt,
    },
    // 转合格供应商
    {
      path: '/TurnToQualifiedVendor',
      name: 'TurnToQualifiedVendor',
      component: TurnToQualifiedVendor,
    },
    // 打样任务ViewTab(采购端)
    {
      path: '/Npc/Buyer/View/Tab',
      name: 'ViewNpcTaskTab',
      component: ViewNpcTaskTab,
    },
    {
      path: '/Rfi/Buyer/View/RfiDeail',
      name: 'RfiDeail',
      component: RfiDeail,
    },
    {
      path: '/FactoryMaterial',
      name: 'FactoryMaterial',
      component: FactoryMaterial,
    },
    {
      path: '/CommonFrame',
      name: 'CommonFrame',
      component: CommonFrame
    },
    {
      path: '/tabTableForm',
      name: 'tabTableForm',
      component: tabTableForm
    },
    {
      path: '/BidSteps',
      name: 'BidSteps',
      component: BidSteps
    },
    {
      path: '/TenderSteps',
      name: 'TenderSteps',
      component: TenderSteps
    },
    {
      path: '/techInstruction',
      name: 'techInstruction',
      component: techInstruction
    },
    {
      path: '/EvaluationStep',
      name: 'EvaluationStep',
      component: EvaluationStep
    },
    {
      path: '/EvaluationForm',
      name: 'EvaluationForm',
      component: EvaluationForm
    },
    {
      path: '/waitWork',
      name: 'waitWork',
      component: waitWork
    },
    {
      path: '/Questionnaire2',
      name: 'Questionnaire2',
      component: Questionnaire
    },
    {
      path: '/View',
      name: 'View',
      component: View
    },
    {
      path: '/Index',
      name: 'Index',
      redirect: '/Index/Home',
      component: Index,
      children: [
        {
          path: '/Index/Supplier',
          name: 'Supplier',
          redirect: '/Index/Home',
          component: Supplier,
          children: [
            {
              path: '/Index/Supplier/VendorRegister',
              name: 'VendorRegister',
              component: VendorRegister
            },
            {
              path: '/Index/Supplier/Potential',
              name: 'Potential',
              component: Potential
            },
            {
              path: '/Index/Supplier/Formal',
              name: 'Formal',
              component: Formal
            },
            {
              path: '/Index/Supplier/Eliminate',
              name: 'Eliminate',
              component: Eliminate
            },
            {
              path: '/Index/Supplier/All',
              name: 'All',
              component: All
            },
            {
              path: '/Index/Supplier/Rfi',
              name: 'Rfi',
              component: Rfi
            },{
              path: '/Index/Supplier/Vendor/RfiList',
              name: 'RfiList',
              component: RfiList
            },
            {
              path: '/Index/Supplier/Vendor/Questionnaire3',
              name: 'Questionnaire3',
              component: Questionnaire3
            },{
              path: '/Index/Supplier/common/RfiItemView',
              name: 'RfiItemView',
              component: RfiItemView
            },
            {
              path: '/Index/Supplier/common/RfiItemCheck',
              name: 'RfiItemCheck',
              component: RfiItemCheck
            },
            {
              path: '/Index/Supplier/Invitation',
              name: 'Invitation',
              component: Invitation
            },
            {
              path: '/Index/Supplier/RfiFeedBack',
              name: 'RfiFeedBack',
              component: RfiFeedBack
            },
            {
              path: '/Index/Supplier/RfiAdd',
              name: 'RfiAdd',
              component: RfiAdd
            },
            {
              path: '/Index/Supplier/RfiItem',
              name: 'RfiItem',
              component: RfiItem
            }
          ]
        },
        {
          path: '/Index/Home',
          name: 'Home',
          component: Home
        },
        //供应商商务协同
        {
          path: '/Index/Buscollaboration',
          name: 'buscollaboration',
          redirect: '/Index/Home',
          component: Buscollaboration,
          children:[
            {
              path: '/Index/Buscollaboration/VendorQuoteList',
              name: 'vendorQuoteList',
              component: VendorQuoteList
            },
            {
              path: '/Index/Buscollaboration/DetailQuote',
              name: 'detailQuote',
              component: DetailQuote
            },
            {
              path: '/Index/Buscollaboration/SubentryQuote',
              name: 'subentryQuote',
              component: SubentryQuote
            },
            {
              path: '/Index/Buscollaboration/UnitPriceQuote',
              name: 'unitPriceQuote',
              component: UnitPriceQuote
            },
            {
              path: '/Index/Buscollaboration/VendorQuoteMain',
              name: 'vendorQuoteMain',
              component: VendorQuoteMain
            }
          ]
        },
        {
          path: '/Index/VendorDlv',
          name: 'VendorDlv',
          redirect: '/Index/Home',
          component: VendorDlv,
          children: [
            // 供应商开发申请
            {
              path: '/Index/VendorDlv/DlvApply',
              name: 'DlvApply',
              component: DlvApply
            },
            // 供应商开发申请打样待办
            {
              path: '/Index/VendorDlv/ToDoNode',
              name: 'ToDoNode',
              component: ToDoNode
            },
             // 评分
             {
              path: '/Index/VendorDlv/ExaminationScore',
              name: 'examinationScore',
              component: ExaminationScore,
            },
             // 供应商考察评估
             {
              path: '/Index/VendorDlv/VendorInspectionEvaluation',
              name: 'vendorInspectionEvaluation',
              component: VendorInspectionEvaluation,
            },
            //评分
            {
              path: '/Index/VendorDlv/VendorInspect',
              name: 'VendorInspect',
              component: VendorInspect,
            },
            //评分审核界面
            {
              path: '/Index/VendorDlv/Validate',
              name: 'validate',
              component: Validate,
            },
             // 供应商转正视图
            {
              path: '/Index/VendorDlv/VendorPrompt',
              name: 'VendorPrompt',
              component: VendorPrompt,
            },
            //供应商转正审核
            {
              path: '/Index/VendorDlv/VendorPromptView',
              name: 'VendorPromptView',
              component: VendorPromptView,
            },
             //供应商考察评估反馈
             {
              path: '/Index/VendorDlv/Enclosure',
              name: 'enclosure',
              component: Enclosure,
            },
            // 新增工厂考察评估视图
            {
              path: '/Index/VendorDlv/VendorInspectAdd',
              name: 'vendorInspectAdd',
              component: VendorInspectAdd,
            },
             //工厂考察评估编辑
             {
              path: '/Index/VendorDlv/Editor',
              name: 'editor',
              component: Editor,
            },
             // 工厂考察评估视图 专家打分
            {
              path: '/Index/VendorDlv/VendorInspectScoreList',
              name: 'VendorInspectScoreList',
              component: VendorInspectScoreList,
            },
            // 新物料打样（采购端）
            {
              path: '/Index/VendorDlv/NpcTask',
              name: 'NpcTask',
              component: NpcTask,
            },
            // 采购端打样待办
            {
              path: '/Index/VendorDlv/BuyerToDoList',
              name: 'BuyerToDoList',
              component: BuyerToDoList
            },
            // 供应端打样待办
            {
              path: '/Index/VendorDlv/VendorToDoList',
              name: 'VendorToDoList',
              component: VendorToDoList
            },
            // 新物料打样进度跟踪弹框
            {
              path: '/Index/VendorDlv/NpcTaskDialog',
              name: 'NpcTaskDialog',
              component: NpcTaskDialog,
            },
            // 新物料打样（供应端）
            {
              path: '/Index/VendorDlv/VendorNpcTask',
              name: 'VendorNpcTask',
              component: VendorNpcTask,
            },
          ]
        },
        // 新增或修改开发申请供应商
        {
          path: '/Index/VendorDlv/SaveOrUpdateDlvApply',
          name: 'SaveOrUpdateDlvApply',
          component: SaveOrUpdateDlvApply,
        },
        // 新增打样任务Tab
        {
          path: '/Index/VendorDlv/Npc/Buyer/Withmtrl/Add/Tab',
          name: 'AddNpcTaskTab',
          component: AddNpcTaskTab,
        },
        // 打样任务ViewTab（供应端）
        {
          path: '/Index/VendorDlv/Npc/Vendor/Withmtrl/View/Tab',
          name: 'VendorViewNpcTaskTab',
          component: VendorViewNpcTaskTab,
        },
        {
          path: '/Index/MasterData',
          name: 'MasterData',
          redirect: '/Index/Home',
          component: MasterData,
          children: [
            {
              path: '/Index/MasterData/MaterialCategory',
              name: 'MaterialCategory',
              component: MaterialCategory
            },
            {
              path: '/Index/MasterData/Materiel',
              name: 'Materiel',
              component: Materiel
            },
            {
              path: '/Index/MasterData/Company',
              name: 'Company',
              component: Company
            },
            {
              path: '/Index/MasterData/Factory',
              name: 'Factory',
              component: Factory,
            },
            {
              path: '/Index/MasterData/SRMPurOrg',
              name: 'SRMPurOrg',
              component: SRMPurOrg
            },
            {
              path: '/Index/MasterData/ERPPurOrg',
              name: 'ERPPurOrg',
              component: ERPPurOrg
            },
            {
              path: '/Index/MasterData/SRMPurGroup',
              name: 'SRMPurGroup',
              component: SRMPurGroup
            },
            {
              path: '/Index/MasterData/ERPPurGroup',
              name: 'ERPPurGroup',
              component: ERPPurGroup
            },
            {
              path: '/Index/MasterData/Expert',
              name: 'Expert',
              component: Expert
            },
            {
              path: '/Index/MasterData/Lgort',
              name: 'Lgort',
              component: Lgort
            }
          ]
        },
        {
          path: '/Index/System',
          name: 'System',
          redirect: '/Index/Home',
          component: System,
          children: [
            {
              path: '/Index/System/Notice',
              name: 'Notice',
              component: Notice
            },
            {
              path: '/Index/System/AddNotice',
              name: 'AddNotice',
              component: AddNotice
            },
            {
              path: '/Index/System/Dictionaries',
              name: 'Dictionaries',
              component: Dictionaries
            },
            {
              path: '/Index/System/User',
              name: 'User',
              component: User
            },
            {
              path: '/Index/System/UserAllowDataAuth',
              name: 'UserAllowDataAuth',
              component: UserAllowDataAuth,
            },
            {
              path: '/Index/System/Part',
              name: 'Part',
              component: Part
            },
            {
              path: '/Index/System/Online',
              name: 'Online',
              component: Online
            }
          ]
        },
        {
          path: '/Index/Rfq',
          name: 'Rfq',
          redirect: '/Index/Home',
          component: Rfq,
          children: [
            // { // 采购申请管理路由
            //   path: '/Index/Rfq/PurRequestMgt',
            //   name: 'PurRequestMgt',
            //   redirect: '/Index/Rfq/PurRequest',
            //   component: PurRequestMgt,
            //   children: [
            //     {
            //       path: '/Index/Rfq/PurRequest',
            //       name: 'PurRequest',
            //       component: PurRequest,
            //     },
            //     {
            //       path: '/Index/Rfq/PurRequestItem',
            //       name: 'PurRequestItem',
            //       component: PurRequestItem,
            //     },
            //   ]
            // },
            {
              path: '/Index/Rfq/PurRequest',
              name: 'PurRequest',
              component: PurRequest,
            },
            {
              path: '/Index/Rfq/PurRequestItem',
              name: 'PurRequestItem',
              component: PurRequestItem,
            },
            {
              path: '/Index/Rfq/PurRequest/PurReqMatchTab',
              name: 'PurReqMatchTab',
              component: PurReqMatchTab
            },
            {
              path: '/Index/Rfq/PurRequestItem/ToBidTab',
              name: 'ToBidTab',
              component: ToBidTab
            },
            {
              path: '/Index/Rfq/PurRequestItem/toEnquiryDetail',
              name: 'ToEnquiryDetail',
              component: ToEnquiryDetail
            },
            // {
            //   path: '/Index/Rfq/Quote',
            //   name: 'quote',
            //   component: Quote,
            // },
            {
              path: '/Index/Rfq/RfqEnquiry',
              name: 'RfqEnquiry',
              component: RfqEnquiry,
            },
            {
              path: '/Index/Rfq/RfqEnquiryTemplate',
              name: 'EnquiryTemplate',
              component: EnquiryTemplate,
            },
            {
              path: '/Index/Rfq/AddRfqEnquiry',
              name: 'AddRfqEnquiry',
              component: AddRfqEnquiry,
            },

            {
              path: '/Index/Rfq/EnquirySteps',
              name: 'EnquirySteps',
              component: EnquirySteps,
            },

          ]
        },
        //招标
        {
          path: '/Index/bidmgt',
          name: 'Bid',
          redirect: '/Index/bidmgt',
          component: System,
          children: [
             {
               path: '/Index/bidmgt/buyer',
               name: 'bidmgt',
               component: Bid
             },
             {
              path: '/Index/bidmgt/creatBid',
              name: 'creatBid',
              component: creatBid
            },
            {
              path: '/Index/bidmgt/evaMethodTemp',
              name: 'evaMethodTemp',
              component: evaMethodTemp
            }
          ]
        },
        // 价格管理
        {
          path: '/Index/priceMgt',
          name: 'Price',
          redirect: '/Index/bidmgt',
          component: Rfq,
          children: [
             {
               path: '/Index/priceMgt/Budget',
               name: 'Budget',
               component: Budget
             }
          ]
        },
        //供应商投标
        {
          path: 'Index/bidmgt/tender',
          name: 'Tender',
          redirect: '/Index/bidmgt/tender',
          component: System,
          children: [
             {
               path: '/Index/bidmgt/tender',
               name: 'tender',
               component: Tender
             }
          ]
        },
        //评标
        {
          path: '/Index/bidmgt',
          name: 'BidEvaluation',
          redirect: '/Index/bidmgt/bidEvaluation',
          component: System,
          children: [
             {
               path: '/Index/bidmgt/bidEvaluation',
               name: 'bidEvaluation',
               component: BidEvaluation
             }
          ]
        },
        {
          path: '/Index/Sourcing',
          name: 'Sourcing',
          redirect: '/Index/Home',
          component: Sourcing,
          children: [
             {
               path: '/Index/Contract/Apply',
               name: 'ContractApply',
               component: ContractApply
             },
             {
               path: '/Index/Contract/Main',
               name: 'Contract',
               component: Contract
             },
             {
               path: '/Index/Contract/Template',
               name: 'ContractTemplate',
               component: ContractTemplate
             },
             {
              path: '/Index/Contract/vendor/Main',
              name: 'VendorContract',
              component: VendorContract
            }

          ]
        }
      ]
    }
  ]
})
